<?php
class SqlAction extends ZMAction {
    public function getAll(){
        $Model = M('Dev');
        $sql = $_REQUEST['sql'];
        $res = $Model->query($sql);
        if($res){
            $this->ajaxRetArray($res);
        }else{
            $this->ajaxRetArray(array());
        }
    }
}